<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class phpCR</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class phpCR</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">This class provides a method for loading files, controlling variables, etc.,  within the phpContentRepository interfaces.</p>
	<ul class="tags">
				<li><span class="field">license:</span> <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License,
      Version 2.0</a></li>
				<li><span class="field">copyright:</span> Copyright &amp;copy; 2004-2005, Domain51, United States</li>
				<li><span class="field">author:</span> Travis Swicegood &lt;<a href="mailto:travis@domain51.net">travis@domain51.net</a>&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_phpCR_library_php.html">/phpCR.library.php</a> (line <span class="field">26</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getLevel" title="details" class="method-name">getLevel</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getPath" title="details" class="method-name">getPath</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#loadAbstract" title="details" class="method-name">loadAbstract</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">string|null</span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">null</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#loadClass" title="details" class="method-name">loadClass</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">string|null</span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">null</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#loadException" title="details" class="method-name">loadException</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#loadInterface" title="details" class="method-name">loadInterface</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">string|null</span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">null</span>])
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setLevel" title="details" class="method-name">setLevel</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$level</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setPath" title="details" class="method-name">setPath</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$path</span>)
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetLevel" id="getLevel"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getLevel</span> (line <span class="line-number">59</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the current implementation level for phpCR</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getLevel
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodgetPath" id="getPath"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getPath</span> (line <span class="line-number">70</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the current path of the phpCR files</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getPath
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodloadAbstract" id="loadAbstract"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">loadAbstract</span> (line <span class="line-number">89</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads a phpCR abstract.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			loadAbstract
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">string|null</span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: The abstract name.</span>			</li>
					<li>
				<span class="var-type">string|null</span>
				<span class="var-name">$path</span><span class="var-description">: The path to load the interface from.  This can not contain a trailing    slash. (Optional)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodloadClass" id="loadClass"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">loadClass</span> (line <span class="line-number">109</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads a phpCR class.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			loadClass
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">string|null</span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: The interface name.</span>			</li>
					<li>
				<span class="var-type">string|null</span>
				<span class="var-name">$path</span><span class="var-description">: The path to load the interface from.  This can not contain a trailing    slash. (Optional)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodloadException" id="loadException"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">loadException</span> (line <span class="line-number">136</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads a phpCR exception.</p>
<p class="description"><p>This function will look for a previously declared version of this file  before loading.  This allows for the implementation of your own exceptions  in place of the provided defaults.  Important Note: This does  not check to insure that the implementation meets the JCR/phpCR  specification.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			loadException
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: <p>The exception name minus &quot;Exception&quot;.  Example:</p><p>phpCR::loadException('Login'); // Loads LoginException        phpCR::loadException('Repository'); // Loads RepositoryException</p></span>			</li>
				</ul>
		
		
	</div>
<a name="methodloadInterface" id="loadInterface"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">loadInterface</span> (line <span class="line-number">159</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads a phpCR interface</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			loadInterface
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">string|null</span>&nbsp;<span class="var-name">$path</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: The interface name.</span>			</li>
					<li>
				<span class="var-type">string|null</span>
				<span class="var-name">$path</span><span class="var-description">: The path to load the interface from.  This can not contain a trailing    slash. (Optional)</span>			</li>
				</ul>
		
		
	</div>
<a name="methodsetLevel" id="setLevel"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setLevel</span> (line <span class="line-number">177</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets the level of implementation for phpCR</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setLevel
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$level</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$level</span>			</li>
				</ul>
		
		
	</div>
<a name="methodsetPath" id="setPath"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setPath</span> (line <span class="line-number">194</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets the path to look for all of the phpCR files.</p>
<p class="description"><p>Note: This performs an <a href="http://www.php.net/assert">http://www.php.net/assert</a>  on the $path to insure it exists.  This can be turned off  by calling assert_options() with the appropriate setting.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
				<li><span class="field">static:</span> </li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setPath
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$path</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$path</span>			</li>
				</ul>
		
		
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 31 Dec 2004 10:15:19 -0600 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>